<?php
function view_contacts($config,$param){
view_header($config,array(
    'page' => 'contact',
)); ?>

<div style="float: left;margin-left: 40px">
    <img src="<?php echo image_url ?>CONTACT_160.gif" style="border-radius: 80px;">
</div>
<div style="float: right;width: 340px">
    <img src="<?php echo image_url ?>HELLO.gif" style="border-radius: 80px;">
</div>
<div class="clear" style="height: 50px"></div>

<?php view_contact($param['kontak']['telp'], $param['kontak']['email'], $param['kontak']['alamat']); ?>

<div style="float: right;width: 500px">
    <p>COMMENTS / SUGGESTIONS / INTERESTING PROJECTS</p>
    <p style="line-height: 125%; margin: 20px 0 40px;">Please drop us a line using our email form or just stay<br>
    in the loop by joining our mailing list</p>
    <div style="background-color: #dddddd;padding: 20px;">
	<?php
	if (isset($_SESSION['emailed'])) {
		echo '<div class="alert alert-success">'.$_SESSION['emailed'].'</div><br />';
		unset($_SESSION['emailed']);
	}
	?>
	<form method="post" id="theForm" action="<?php echo $config['home_url']."email"; ?>">
        <div style="float: left;">
            <div style="margin: 0 0 5px 10px;">
                <span style="background-color: #000000;border-radius: 10px 10px 0 0;color: #ffffff;font-style: italic;padding: 5px 10px;">
                    name
                </span>
            </div>
            <div style="height: 40px;">
                <input name="name" type="text" style="border: 1px solid #ffffff;width: 300px;">
            </div>
            <div style="margin: 0 0 5px 10px;">
                <span style="background-color: #000000;border-radius: 10px 10px 0 0;color: #ffffff;font-style: italic;padding: 5px 10px;">
                    email
                </span>
            </div>
            <div style="height: 40px;">
                <input name="email" type="text" style="border: 1px solid #ffffff;width: 300px;">
            </div>
        </div>
        <div style="float: right;">
            <a href="javascript:submitMsg()"><img src="<?php echo image_url ?>SUBMIT.gif" style="border-radius: 55px;"></a>
        </div>
        <div class="clear"></div>
        <div style="margin: 0 0 5px 10px;">
            <span style="background-color: #000000;border-radius: 10px 10px 0 0;color: #ffffff;font-style: italic;padding: 5px 10px;">
                message
            </span>
        </div>
        <div>
            <textarea name="msg" style="border: 1px solid #ffffff;width: 95%; resize:vertical" rows="5"></textarea>
        </div>
	</form>
    </div>
</div>

<div class="clear"></div>

<?php view_footer_2($config);
}
